/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.base.client;

import com.xy.biz.base.domain.req.GetEquipmentRequest;
import com.xy.biz.base.domain.req.ListEquipmentRequest;
import com.xy.biz.base.domain.resp.GetEquipmentResponse;
import com.xy.lang.domain.Page;
import com.xy.lang.domain.Result;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author yzh
 * @date 2021-4-13
 */
public interface EquipmentClient {

	/**
	 * 查找一个
	 *
	 * @param request
	 * @return
	 */
	Result<GetEquipmentResponse> getEquipment(GetEquipmentRequest request);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 * @return
	 */
	Result<List<GetEquipmentResponse>> listEquipmentById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<List<GetEquipmentResponse>> listEquipment(ListEquipmentRequest request);

	/**
	 * 分页查找
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<Page<GetEquipmentResponse>> pageEquipment(ListEquipmentRequest request);

}
